#!/bin/bash
WD=$(pwd)
ln $WD/$1 ~/left4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/
cd ~/left4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/
./compile.sh $1
ret=$?
rm ~/left4dead2/left4dead2/left4dead2/addons/sourcemod/scripting/$1

if test $ret -eq 0
then
    exit 0;
else
    exit -1;
fi